const main = require('../main/main');

describe('taxi fee', function () {
    it('小于2公里',function(){
        let t=1;
        let w=4;
        let sum=main(t,w);
        let answer='7元';
        expect(sum).toEqual(answer);
    })
    it('大于6公里小于8公里',function(){
        let t=7.3;
        let w=4;
        let sum=main(t,w);
        let answer='12元';
        expect(sum).toEqual(answer);
    })
    it("大于8公里",function(){
        let t=9;
        let w=4;
        let sum=main(t,w);
        let answer='13元';
        expect(sum).toEqual(answer);
    })
});
